package com.yss.reportworld.domain.arrwrap;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.ExcelValid;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * 报配置-报样式对象 rw_db_tp_rep_basic_style
 *
 * @author yss
 * @date 2023-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("rw_db_tp_rep_basic_style")
@Component("TpRepBasicStyle")
public class TpRepBasicStyle extends Model<TpRepBasicStyle> {

    /**
     * 技术主键
     */
    @ExcelProperty( "ID")
    @TableId("ID")
    private String id;

    /**
     * 报表基本信息关联ID
     */
    @ExcelProperty( "BASIC_INFO_ID")
    @TableField("BASIC_INFO_ID")
    @ExcelValid(message = "【TP_REP_BASIC_STYLE】【BASIC_INFO_ID】不能为空")
    private String basicInfoId;

    /**
     * 列宽
     */
    @ExcelProperty( "COL_WIDTHS")
    @TableField("COL_WIDTHS")
    @ExcelValid(message = "【TP_REP_BASIC_STYLE】【COL_WIDTHS】不能为空")
    private String colWidths;

    /**
     * 行高(一般固定表才会有行高度)
     */
    @ExcelProperty( "ROW_HEIGHTS")
    @TableField("ROW_HEIGHTS")
    @ExcelValid(message = "【TP_REP_BASIC_STYLE】【ROW_HEIGHTS】不能为空")
    private String rowHeights;

    /**
     * 合并单元格
     */
    @ExcelProperty( "MERGE_CELL_DATA")
    @TableField("MERGE_CELL_DATA")
    @ExcelValid(message = "【TP_REP_BASIC_STYLE】【MERGE_CELL_DATA】不能为空")
    private String mergeCellData;

    /**
     * 单元格样式
     */
    @ExcelProperty( "CELL_STYLE_DATA")
    @TableField("CELL_STYLE_DATA")
    @ExcelValid(message = "【TP_REP_BASIC_STYLE】【CELL_STYLE_DATA】不能为空")
    private String cellStyleData;

    /**
     * 数据编码
     */
    @ExcelIgnore
    @TableField("RW_DB_ID")
    private String rwDbId;

}
